﻿/*
    Copyright 2011 Andrew Sydney
 
    This file is part of Syd.ScheduleControls.

    Syd.ScheduleControls is free software: you can redistribute it and/or modify
    it under the terms of the GNU Lesser General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    Syd.ScheduleControls is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU Lesser General Public License for more details.

    You should have received a copy of the GNU Lesser General Public License
    along with Syd.ScheduleControls.  If not, see <http://www.gnu.org/licenses/>.
*/
using System;
using System.Drawing;
using System.Windows.Forms;
using System.Data;

namespace CMS_GYM.Interface
{
	/// <summary>
	/// Dialog for adding a new appointment.
	/// </summary>
	public partial class frmChonNgayThongBaoNhacNo : Form
	{
        public int Thang, Nam;
        public frmChonNgayThongBaoNhacNo()
		{
			InitializeComponent();
            txtNam.Text = DateTime.Now.Year.ToString();
		}

        private void btnSave_Click(object sender, EventArgs e)
        {
            try
            {
                Thang = int.Parse(cboThang.Text);
                Nam = int.Parse(txtNam.Text);
                this.DialogResult = DialogResult.OK;
                this.Close();
            }
            catch { }
        }

        private void btnCancel_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.Cancel;
            this.Close();
        }

        

	}
}
